package com.song.cloud.seata.controller;

import com.song.cloud.common.entities.CommonResult;
import com.song.cloud.seata.damain.t_order;
import com.song.cloud.seata.service.Impl.orderServiceImpl;
import com.song.cloud.seata.service.orderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author ZhangGuisong
 * @Date 2021/3/4-22:58
 */
@RestController
public class OrderController {
    @Autowired
    private orderService orderService;
    @GetMapping("/getOrder")
    public CommonResult getOrder(t_order order){
        orderService.create(order);
        return new CommonResult(200,"订单创建好啦","good");
    }

}
